Data Services Developer's Guide : Enable Optimistic Locking
This page last changed on Jan 09, 2008 by tkatz.
eDocs Home > BEA AquaLogic Data Services Platform 3.0 Documentation > Data Services Developer's Guide
|
Value of Optimistic Locking Fields | Effect |
---|---|
PROJECTED | All elements in the data graph are mapped to the data source to verify whether it can be updated. Default value. |
UPDATED | Only elements that have changed in your data graph are used to verify whether the data source has changed. |
SELECTED FIELDS |
Selected elements are used to verify whether the data source has changed. The elements must be non-key elements. |
To set the locking policy:
If you choose SELECTED FIELDS, you must also select the fields used to verify changes in the data source. You can select any number of non-key fields. The key fields are used to identify the data records to be updated. If you select a complex element, its child elements also become selected elements.
You can also disable a field once it is selected.
To select the fields used for optimistic locking:
When you enable optimistic locking for a field, its icon (in the return type in the Overview tab) changes to . You can also see the optimistic locking fields in the pragma statement at the top of the service's Source tab:
(::pragma xds <x:xds targetType="t:CREDITRATING" xmlns:x="urn:annotations.ld.bea.com" xmlns:t="ld:physical/CREDITRATING"> ... <optimisticLockingFields> <field name="RATING"/> </optimisticLockingFields>
Contact BEA | Feedback | Privacy | (c) 2008 BEA Systems
![]() |
Document generated by Confluence on Jan 15, 2008 11:02 |